package com.collaboration.proton.dao;

import com.collaboration.proton.entities.Player;
import org.springframework.data.repository.CrudRepository;

import java.util.List;
/**
 * @author thousandcat
 * @param
 * @return 无
 *
 */
//明数据实体的类名和数据实体中的ID字段的类型
//CrudRepository主要提供CRUD（增删改查）功能
public interface PlayerRepository extends CrudRepository<Player,Long> {
    @Override
    List<Player> findAll();

    Player findPlayerByUserName(String userName);
}
